﻿using System;
using System.Collections.Generic;
using System.Text;
using System.Configuration;
using CacheHelp = Common.CacheHelper;


namespace Configuration
{
    public class DBConfig
    {
        /// <summary>
        /// 获取全局网站数据库连接配置.
        /// </summary>
        public static string ApplicationString
        {
            get
            {
                if (CacheHelp.IsNull("ConnectionStrings_Collect"))
                {
                    CacheHelp.SetCache(
                        "ConnectionStrings_Collect", ConfigBase.GetConfig("ConnectionString"), 120);
                }
                return (string)CacheHelp.GetCache("ConnectionStrings_Collect");
            }
        }

    }
}
